package com.tanhua.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tanhua.domain.AnalysisByDay;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AnalysisMapper extends BaseMapper<AnalysisByDay> {
    @Select("select sum(num_registered) from tb_analysis_by_day")
    Long queryCumulativeUsers();

    @Select("select SUM(num_active) from tb_analysis_by_day where record_date between #{start} and #{end}")
    Long queryActiveUsers(@Param("start") String start, @Param("end") String end);


}
